package main

import (
	"fmt"
)

func main() {
	defer fmt.Println("1")
	defer fmt.Println("2")
	// recover 用于捕获panic 异常
	defer func() {
		if r := recover(); r != nil {
			fmt.Println("捕获panic异常")
		}
	}()
	var mp map[string]string
	mp["username"] = "zhangsan"
	fmt.Println(mp)
}
